<?php
namespace Operationtest\Model;

class Salerow
{
    public $idSaleRow;
    public $idsaleHead;
    public $idArticle;
    public $quantity;
    public $unitPriceHT;
    public $unitPriceTTC;
    public $totalPriceHT;
    public $totalPriceTTC;
    public $discount;
    public $taxeRate;
    public $inMenu;
    public $MenuCode;
    
    public function exchangeArray($data)
    {
        $this->idSaleRow = (isset($data['idSaleRow'])) ? $data['idSaleRow'] : null;
        $this->idsaleHead = (isset($data['idsaleHead'])) ? $data['idsaleHead'] : null;
        $this->idArticle = (isset($data['idArticle'])) ? $data['idArticle'] : null;
        $this->quantity = (isset($data['quantity'])) ? $data['quantity'] : null;
        $this->unitPriceHT = (isset($data['unitPriceHT'])) ? $data['unitPriceHT'] : null;
        $this->unitPriceTTC = (isset($data['unitPriceTTC'])) ? $data['unitPriceTTC'] : null;
        $this->totalPriceHT = (isset($data['totalPriceHT'])) ? $data['totalPriceHT'] : null;
        $this->totalPriceTTC = (isset($data['totalPriceTTC'])) ? $data['totalPriceTTC'] : null;
        $this->discount = (isset($data['discount'])) ? $data['discount'] : null;
        $this->taxeRate = (isset($data['taxeRate'])) ? $data['taxeRate'] : null;
        $this->inMenu = (isset($data['inMenu'])) ? $data['inMenu'] : null;
        $this->MenuCode = (isset($data['MenuCode'])) ? $data['MenuCode'] : null;
    }
}